package com.mall.malllibrary.fragments

import android.graphics.Color
import com.mall.malllibrary.fragments.bottom.BaseBottomFragment
import com.mall.malllibrary.fragments.bottom.BottomItemFragment
import com.mall.malllibrary.fragments.bottom.BottomTabBean
import com.mall.malllibrary.fragments.bottom.ItemBuilder

class MallMainFragment : BaseBottomFragment() {
    override fun setItems(builder: ItemBuilder): LinkedHashMap<BottomTabBean, BottomItemFragment> {
        val  items = LinkedHashMap<BottomTabBean, BottomItemFragment>()
        // 添加需要的直接面的tab对，需要几个添加几个
        // 框架会自动判断并渲染出正确的主界面
        // 不需要调整任何代码
        return items
    }

    override fun setIndexFragment(): Int {
        return 0
    }

    override fun setClickedColor(): Int {
        return Color.parseColor("#ffff8800")
    }
}